

//这个是大cell的自定义模型

#import "OneTableViewCell.h"

@implementation OneTableViewCell
-(void)dealloc
{
    [_imv release];
    [_titlelab release];
    [super dealloc];
    
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self addAllViews];
    }
    return self;
}
//大cell:height->150;
-(void)addAllViews
{
   
    self.imv = [[[UIImageView alloc] init] autorelease];
    self.imv.frame =CGRectMake(0, 0, self.bounds.size.width, 150);
    //NSLog(@"%f",self.bounds.size.height*0.8);
  //  self.imv.backgroundColor = [UIColor greenColor];
    [self addSubview:self.imv];
    
    
    self.titlelab = [[[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMinX(self.imv.frame), CGRectGetMaxY(self.imv.frame), CGRectGetWidth(self.imv.frame),180-CGRectGetHeight(self.imv.frame)) ] autorelease];//180 是测试时自定义的cell高度.
    self.titlelab.font = [UIFont systemFontOfSize:15];
    [self addSubview:self.titlelab];
    
    
}


- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
